package com.mcc.app.msg.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mcc.common.core.domain.entity.SysUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;

/**
 * 消息提醒对象 msg_remind
 *
 * @author gxy
 * @date 2023-12-05
 */
@ApiModel("消息提醒对象")
@Data
public class MsgRemind implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("用户ID")
    private Long userId;

    @TableField(exist = false)
    private SysUser user;

    @ApiModelProperty("消息类型，1为通知，2为告警")
    private Integer msgType;

    @ApiModelProperty("消息标题")
    private String msgTitle;

    @ApiModelProperty("消息内容")
    private String msgContent;

    @ApiModelProperty("是否声音提醒")
    private Integer msgIsSound;

    @ApiModelProperty("是否处理")
    private Integer msgIsSolved;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("消息时间")
    private Date msgDt;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDt;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDt;
}
